VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   8505
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   12540
   LinkTopic       =   "Form1"
   ScaleHeight     =   8505
   ScaleWidth      =   12540
   StartUpPosition =   3  'Windows Default
   WindowState     =   2  'Maximized
   Begin VB.CommandButton Command4 
      Caption         =   "GSGN"
      Height          =   375
      Left            =   1200
      TabIndex        =   7
      Top             =   120
      Width           =   735
   End
   Begin VB.CommandButton Command3 
      Caption         =   "GHAN"
      Height          =   375
      Left            =   360
      TabIndex        =   6
      Top             =   120
      Width           =   615
   End
   Begin MSComCtl2.UpDown UpDown2 
      Height          =   255
      Left            =   2640
      TabIndex        =   4
      Top             =   120
      Width           =   735
      _ExtentX        =   1296
      _ExtentY        =   450
      _Version        =   393216
      Value           =   1000
      Increment       =   100
      Max             =   100000
      Min             =   1000
      Orientation     =   1
      Enabled         =   -1  'True
   End
   Begin MSComCtl2.UpDown UpDown1 
      Height          =   255
      Left            =   6600
      TabIndex        =   3
      Top             =   120
      Width           =   375
      _ExtentX        =   661
      _ExtentY        =   450
      _Version        =   393216
      Value           =   1
      Alignment       =   0
      Min             =   1
      Orientation     =   1
      Enabled         =   -1  'True
   End
   Begin VB.VScrollBar VScroll1 
      Height          =   8415
      LargeChange     =   1000
      Left            =   12120
      Max             =   10000
      Min             =   120
      SmallChange     =   500
      TabIndex        =   2
      Top             =   120
      Value           =   120
      Width           =   255
   End
   Begin VB.CommandButton Command2 
      Caption         =   "Command2"
      Height          =   375
      Left            =   8640
      TabIndex        =   1
      Top             =   0
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Load"
      Height          =   375
      Left            =   7560
      TabIndex        =   0
      Top             =   0
      Width           =   975
   End
   Begin MSComCtl2.UpDown UpDown3 
      Height          =   495
      Left            =   4080
      TabIndex        =   5
      Top             =   120
      Width           =   255
      _ExtentX        =   450
      _ExtentY        =   873
      _Version        =   393216
      Value           =   100
      Increment       =   100
      Max             =   100000
      Min             =   100
      Enabled         =   -1  'True
   End
   Begin VB.OLE OLE1 
      Class           =   "Package"
      Height          =   1815
      Left            =   2400
      OleObjectBlob   =   "Form1.frx":0000
      SourceDoc       =   "C:\Documents and Settings\Cao Xuan Tung\Desktop\Galileo Accountant\gindocashflow.htm"
      TabIndex        =   8
      Top             =   2640
      Width           =   2295
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
    'Dim pfdn As New AcroApp
    OLE1.Height = 10000
    OLE1.SourceDoc = App.Path & "\gindocashflow.xls"
    
    OLE1.CreateLink OLE1.SourceDoc
    UpDown1.Min = 1
    
    'OLE1.DoVerb -1
    OLE1.AutoVerbMenu = False
    UpDown1.Max = OLE1.object.Sheets.Count
    
    'OLE1.object.Sheets(1).Select
    
    'OLE1.object.Sheets(1).ActiveWindow.FreezePanes = True
    'DisplayScrollBar
    'OLE1.DoVerb vbOLEUIActivate
    
    
    OLE1.Update
    OLE1.Refresh
    
    Command1.SetFocus
    OLE1.Refresh
End Sub
 

Private Sub Command2_Click()
    OLE1.object.ActiveSheet.rows.AutoFit
    'OLE1.object.Sheets(UpDown1.Value).RowHeight = 13
    OLE1.object.ActiveSheet.PageSetup.PaperSize = vbPRPSA4
    OLE1.object.ActiveSheet.PageSetup.Orientation = 2 'xlLandscape
    'OLE1.object.SmallScroll = 3
    OLE1.Update
    OLE1.Refresh
End Sub

Private Sub Command3_Click()
    OLE1.object.Sheets(Command3.Caption).Select
    OLE1.Update
End Sub

Private Sub Command4_Click()
    OLE1.object.Sheets(Command4.Caption).Select
    OLE1.Update
End Sub

Private Sub Form_Resize()
    OLE1.Width = Me.Width - 50
    OLE1.Height = Me.Height - 1200
    OLE1.Top = 500
    OLE1.Left = 50
    VScroll1.Left = Me.Width - VScroll1.Width - VScroll1.Width
    VScroll1.Top = 0
    'OLE1.Move 25, 45, Me.ScaleWidth - 25, Me.ScaleHeight - 65
End Sub

Private Sub UpDown1_Change()
    OLE1.object.Sheets(UpDown1.Value).Select
     
    OLE1.Update
    OLE1.Refresh
End Sub

Private Sub UpDown2_Change()
    OLE1.Width = UpDown2.Value
    OLE1.Update
    OLE1.Refresh
End Sub

Private Sub UpDown3_Change()
    OLE1.Height = UpDown3.Value
    OLE1.Update
    OLE1.Refresh
End Sub

Private Sub VScroll1_Change()
    OLE1.Top = VScroll1.Value * (-1)
    OLE1.Height = OLE1.Height + VScroll1.Value
End Sub

